package adv5;

import java.io.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class BuffRead {
    public static void main(String[] args) {
        try {
//            BufferedReader br=new BufferedReader(new FileReader("javaAdvance/src/adv5/FilePath.java"));
//            String str = null;
//            int line=0;
//            while((str=br.readLine())!=null){
//                System.out.println(++line+":"+str);
//            }
//            br.close();
            BufferedWriter bw=new BufferedWriter(new FileWriter("D:/tmp/2.txt"));
            for (int i = 0; i < 30; i++) {
                bw.write("好好学习，天天向下");
                bw.newLine();
            }
            bw.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
